home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / ODF / Framewrk / FWViews / FWAPictV.cpp < prev    next >
Encoding:
Text File  |  1996-09-17  |  1.8 KB  |  54 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                FWAPictV.cpp
  4. //    Release Version:    $ ODF 2 $
  5. //
  6. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #include "FWFrameW.hpp"
  11.  
  12. #ifndef FWPICTSV_H
  13. #include "FWPictSv.h"
  14. #endif
  15.  
  16. //========================================================================================
  17. // File scope definitions
  18. //========================================================================================
  19.  
  20. #ifdef FW_BUILD_MAC
  21. #pragma segment fwgadgts
  22. #endif
  23.  
  24. //========================================================================================
  25. // CLASS FW_CPictSView
  26. //========================================================================================
  27.  
  28. const FW_ClassTypeConstant FW_LPictSView = FW_TYPE_CONSTANT('p','i','c','v');
  29. FW_REGISTER_ARCHIVABLE_CLASS(FW_LPictSView, FW_CPictSView, FW_CPictSView::Create, FW_CView::Read, FW_CPictSView::Destroy, FW_CView::Write)
  30.  
  31. //----------------------------------------------------------------------------------------
  32. //    FW_CPictSView::Create
  33. //----------------------------------------------------------------------------------------
  34.  
  35. void* FW_CPictSView::Create(FW_CReadableStream& stream, FW_ClassTypeConstant type)
  36. {
  37. FW_UNUSED(stream);
  38. FW_UNUSED(type);
  39.     FW_SOMEnvironment ev;
  40.     return FW_NEW(FW_CPictSView, (ev));
  41. }
  42.  
  43. //----------------------------------------------------------------------------------------
  44. //    FW_CPictSView::Destroy
  45. //----------------------------------------------------------------------------------------
  46.  
  47. void FW_CPictSView::Destroy(void* object, FW_ClassTypeConstant type)
  48. {
  49. FW_UNUSED(type);
  50.     FW_CPictSView* self = (FW_CPictSView*) object;
  51.     delete self;
  52. }
  53.  
  54.